]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Minor cleanup
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 17 Mar 2015 04:31:02 +0000 (05:31 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 17 Mar 2015 04:34:14 +0000 (05:34 +0100)
Chain up to the parent instead of setting up a second signal connection.

js/ui/messageTray.js

index d809ca88b5944a5dce6e446133fbd852ab62acf9..1256a13a653e9d5d6d3a8bbd5dbd5207040203a9 100644 (file)
@@ -1128,7 +1128,6 @@ const NotificationBanner = new Lang.Class({
         this.parent(notification);
 
         this.actor.add_style_class_name('notification-banner');
-        this.actor.connect('destroy', Lang.bind(this, this._onDestroyed));
 
         this._buttonBox = null;
 
@@ -1145,7 +1144,8 @@ const NotificationBanner = new Lang.Class({
             }));
     },
 
-    _onDestroyed: function() {
+    _onDestroy: function() {
+        this.parent();
         this.notification.disconnect(this._activatedId);
     },